﻿@model RequirementAndBug.Common.Entities.RequireModels.RequireDetailItem

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<link href="~/HtmlCommon/Scripts/UmUEditor123/themes/default/css/umeditor.min.css" rel="stylesheet" />
<script src="~/HtmlCommon/Scripts/UmUEditor123/umeditor.config.js"></script>
<script src="~/HtmlCommon/Scripts/UmUEditor123/umeditor.min.js"></script>
<script src="~/HtmlCommon/Scripts/UmUEditor123/lang/zh-cn/zh-cn.js"></script>
<link href="~/HtmlCommon/Styles/BugCreate.css" rel="stylesheet" />
<script src="~/HtmlCommon/PageScripts/BugCreate.js"></script>
<link href="~/HtmlCommon/Styles/calendar.min.css" rel="stylesheet" />
<script src="~/HtmlCommon/Scripts/calendar.min.js"></script>

<<< @Html.ActionLink("返回列表","Index", "Bug")
<h2>创建一个新记录</h2>

@using(Html.BeginForm())
{
    @Html.AntiForgeryToken()
<div class="formDiv">
    @Html.LabelFor(model => model.Title) @Html.TextBoxFor(model => model.Title, new { @style="width:500px;height:25px;" }) <span style="color:red">@Html.ValidationMessageFor(model=>model.Title)</span>
</div>
<div class="formDiv">
    @Html.LabelFor(model => model.ProCategory) @Html.DropDownListFor(model => model.ProCategory, ViewBag.ProCategoryList == null ? new List<SelectListItem> { new SelectListItem { Text = "空数据源", Value = "" } } : (ViewBag.ProCategoryList as List<SelectListItem>), "--请选择--", new { @style="width:250px;height:30px;"}) <span style="color:red">@Html.ValidationMessageFor(model=>model.ProCategory)</span>
</div> 
<div class="formDiv">
    @Html.LabelFor(model => model.TargetUserID) @Html.DropDownListFor(model => model.TargetUserID,ViewBag.TargetUserList as List<SelectListItem>, new { @style="width:250px;height:30px;"}) <span style="color:red">@Html.ValidationMessageFor(model=>model.TargetUserID)</span>
</div> 
<div class="formDiv">
    @Html.LabelFor(model => model.DeadlineTime) @Html.TextBoxFor(model => model.DeadlineTime, new { @style="width:500px;height:25px;",@readonly="readonly" }) <span style="color:red">@Html.ValidationMessageFor(model=>model.DeadlineTime)</span>
</div>
<div class="formDiv">
    @Html.LabelFor(model => model.ProjectDesc) @Html.TextAreaFor(model => model.ProjectDesc, new {cols=100,rows=30}) <span style="color:red">@Html.ValidationMessageFor(model=>model.ProjectDesc)</span>
</div>
  
    <div class="formDiv">
        <input class="submitBtn" type="submit" value="创建" />
    </div>
}